<template>
	<view class="littleu-price-wrap">
		<view class="littleu-normal-price" :style="{color: normalPriceColor}">
			<text class="littleu-price-title">{{normalPriceTitle}}:</text>
			<text class="littleu-price-unit">{{unit}}</text>
			<text class="littleu-price-number">{{normalPrice}}</text>
		</view>
		<view class="littleu-through-price" :style="{color: throughPriceColor}">
			<text class="littleu-price-title">{{throughPriceTitle}}:</text>
			<text class="littleu-price-unit">{{unit}}</text>
			<text class="littleu-price-number">{{throughPrice}}</text>
		</view>
	</view>
</template>

<script>
	export default{
		props: {
			normalPriceTitle: {
				type: String,
				default: '会员价'
			},
			unit: {
				type: String,
				default: '￥'
			},
			throughPriceTitle: {
				type: String,
				default: '原价'
			},
			normalPriceColor: {
				type: String,
				default: '#dd524d'
			},
			normalPrice: Number,
			throughPrice: Number,
			throughPriceColor: {
				type: String,
				default: '#666'
			}
		}
	}
</script>

<style>
	.littleu-price-wrap{
		display: flex;
		flex-direction: row;
		align-items: baseline;
	}
	.littleu-normal-price{
		font-size: 28rpx;
		margin-right: 12rpx;
	}
	.littleu-through-price{
		font-size: 24rpx;
		text-decoration: line-through;
	}
</style>
